package com.lwq.lwqmicoservice.common.util;

import java.util.HashSet;
import java.util.List;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2021/6/13
 */
public class TreeUtil {

    /**
     * List转set去重
     * @param list
     * @return
     */
    public static List removeDuplicate(List list) {
        HashSet h = new HashSet(list);
        list.clear();
        list.addAll(h);
        return list;
    }
}
